#include <iostream>
using namespace std;

class Date
{
public:
	Date(int year = 2000,int month = 1,int day = 1)
	{
		_year = year;
		_month = month;
		_day = day;
	}

	bool operator <(const Date& x);
	bool operator ==(const Date& x);
	bool operator <=(const Date& x);
	bool operator >(const Date& x);
	bool operator >=(const Date& x);

private:
	int _year;
	int _month;
	int _day;
};

int main()
{
	Date d1(2003, 2, 3);
	Date d2(2005, 2, 3);
	bool ans = d1 < d2;
	return 0;
}

bool Date::operator <(const Date& x)
{
	if (_year < x._year)
		return true;
	else if (_year == x._year && _month < x._month)
		return true;
	else if(_year == x._year && _month == x._month && _day < x._day)
		return true;
	return false;
}

bool Date::operator ==(const Date& x)
{
	return _year == x._year && _month == x._month && _day == x._day;
}

bool Date::operator <=(const Date& x)
{
	return *this < x || *this == x;
}

bool Date::operator >(const Date& x)
{
	return !(*this <= x);
}

bool Date::operator >=(const Date& x)
{
	return !(*this < x);
}

